from applications.extensions import ma
from marshmallow import fields


# 用户models的序列化类
class ScoreOutSchema(ma.Schema):
    id = fields.Integer()
    type_id = fields.Integer()
    user_id = fields.Integer()
    enable = fields.Integer()
    train_data = fields.Str()
    scene_name = fields.Str()
    train_name = fields.Str()
    user_name = fields.Str()
    start_time = fields.DateTime()
    end_time = fields.DateTime()
    train_grade = fields.Str()